package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.BomEntity;
import com.glory.brepda.entity.PickingEntity;

import java.util.List;

public class PickingDataAdapter extends BaseQuickAdapter<PickingEntity, BaseViewHolder> {

    public PickingDataAdapter(@Nullable List<PickingEntity> data) {
        super(R.layout.item_picking_list);
    }

    @Override
    protected void convert(BaseViewHolder helper, PickingEntity item) {
        helper.setText(R.id.tvLotId,item.getLOTID());
        helper.setText(R.id.tvStep,item.getSTEPNAME());
        helper.setText(R.id.tvType,item.getMATERIALTYPE());
        helper.setText(R.id.tvSpec,item.getMATERIALSPEC());
        helper.setText(R.id.tvEqpId,item.getEQPID());
        helper.setText(R.id.tvEqpLocation,item.getEQPLOCATION());
        helper.setText(R.id.tvQty,item.getMAINQTY());
    }
}
